import { request } from "@/utils/service"

// 获取七牛token
export function getQiniuTokenApi(params) {
  return request({
    url: "confined/common/getQiniuToken",
    method: "get",
    params: params
  })
}
//上传到七牛
export function toQiniuApi(data) {
  return request({
    // url: 'https://upload.qiniup.com/',
    url: "https://up-z1.qiniup.com",
    method: "post",
    data,
    headers: { "Content-Type": "multipart/form-data;charset=utf-8" }
  })
}
// 地区列表查询
export function getAllPlaceApi(params) {
  return request({
    url: "open/getAllPlace",
    method: "get",
    params: params
  })
}
